<%@page isELIgnored="false" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<script type="text/javascript">
	$().ready(function() {
		$("#saveEvent").validate({
			rules: {
				message: {
					required: true
				}
			}
		});
	});
</script>

<div style="padding:10px">
	<span class="title">Edit Event</span>
	<form:form method="post" commandName="event" id="saveEvent" name="saveEvent" action="/admin/events/saveEvent.do">
	<input type="hidden" name="id" value="${event.id}"/>
	<table class="tableForm">
		<tr>
			<td style="padding-top: 10px" valign="top"><label>Content</label></td>
			<td style="padding-top: 10px"><form:textarea path="message" id="message" style="width: 300px; height: 100px"/></td>
		</tr>
		<tr>
			<td colspan="2" align="right"><input type="submit" title="Save" name="Save" value="Save"/>
		</tr>
	</table>
	</form:form>
</div>